package com.oop.ch07.user;

public class Test {
	public static void main(String[] args) {
		getUserByIdForMysql();
		Test.getUserByIdForOracle();
		
		Test test=new Test();
		test.getUserByIdForExcle();
	}
	
	//从Excel文件中来获取员工的信息
	public void getUserByIdForExcle(){
		UserDao userDao=new UserDaoImplExecl();
		User user= userDao.getUserById(1);
		System.out.println("从Excel文件中查询的用户信息："+user);
	}
	
	//从oracle中来获取员工的信息
	public static void getUserByIdForOracle() {
		UserDao userDao=new UserDaoImplOracle();
		User user=userDao.getUserById(1);
		System.out.println("从oracle数据库中查询的用户信息："+user);
	}
	
	//从mysql中来获取员工的信息
	public static void getUserByIdForMysql() {
		UserDao userDao=new UserDaoImplMysql();
		User user=userDao.getUserById(2);
		System.out.println("从mysql数据库中查询的用户信息："+user);
	}
}
